﻿{% extends "guild/base.html" %}


<!-- CONTENT
  =====================================================================-->

{% block content %}

<div class="page__bd">
    <div class="weui-panel weui-panel_access">
        <div class="weui-panel__bd">
            {% for video in videos %}
            <a class="weui-media-box weui-media-box_appmsg weui-cell_access" href="{% url 'guild:view_video' video.id %}">
                <div class="weui-media-box__hd">
                    <img class="weui-media-box__thumb avatar" src="{{ video.cover_url }}" alt="">
                </div>
                <div class="weui-media-box__bd">
                    <h4 class="weui-media-box__title">{{ video.id }}</h4>
                    <p class="weui-media-box__desc">{{ video.add_time|date:"Y-m-d H:i:s" }}</p>
                </div>

                <div class="weui-cell__ft">
                    {% if video.auth_status == 1 %}
                        <span style="vertical-align:middle; font-size: 17px;">等待审核</span>
                        <i class="weui-icon-warn"></i>
                    {% elif video.auth_status == 2 %}
                        <span style="vertical-align:middle; font-size: 17px;">审核被拒</span>
                        <i class="weui-icon-cancel"></i>
                    {% elif video.auth_status == 3 %}
                        <span style="vertical-align:middle; font-size: 17px;">通过审核</span>
                        <i class="weui-icon-success"></i>
                    {% else %}
                        <span style="vertical-align:middle; font-size: 17px;">???</span>
                    {% endif %}
                </div>
            </a>
            {% endfor %}
        </div>
    </div>
</div>

<div class="page__ft">
    <a href="{% url 'guild:home' %}">
        <span class="bottom-logo">
           HiBao
       </span>
    </a>
</div>

{% endblock content %}


<!-- SCRIPT
  =====================================================================-->

{% block extra_js %}
{% endblock extra_js %}